/**
  ******************************************************************************
  * @file   : disp.h
  * @author : 测试1组（houtiezhu）
  * @version: v0
  * @date   : 2019.07.09
  * @brief  :
  *
  * Copyright (C) 2019  Hangzhou SDIC Microelectronics Co., Ltd
  ******************************************************************************
**/

#ifndef disp_H
#define disp_H

#include "define.h"


extern  uint32 LcdBuf[11];



//1~12
#define seg_a	(1<<7)
#define seg_b	(1<<6)
#define seg_c	(1<<5)
#define seg_d	(1<<4)
#define seg_e	(1<<3)
#define seg_f	(1<<2)
#define seg_g	(1<<1)

#define  Char_0  seg_a+seg_b+seg_c+seg_d+seg_e+seg_g        // char "0"  0x00
#define  Char_1  seg_b+seg_c                                // char "1"  0x01
#define  Char_2  seg_a+seg_b+seg_d+seg_f+seg_g              // char "2"  0x02
#define  Char_3  seg_a+seg_b+seg_c+seg_d+seg_f              // char "3"  0x03
#define  Char_4  seg_b+seg_c+seg_f+seg_e                    // char "4"  0x04
#define  Char_5  seg_a+seg_c+seg_d+seg_f+seg_e              // char "5"  0x05
#define  Char_6  seg_a+seg_c+seg_d+seg_e+seg_f+seg_g        // char "6"  0x06
#define  Char_7  seg_a+seg_b+seg_c                   // char "7"  0x07
#define  Char_8  seg_a+seg_b+seg_c+seg_d+seg_e+seg_f+seg_g  // char "8"  0x08
#define  Char_9  seg_a+seg_b+seg_c+seg_d+seg_f+seg_e        // char "9"  0x09
#define  Char_A  seg_a+seg_b+seg_c+seg_e+seg_f+seg_g  // char "A"
#define  Char_B  seg_c+seg_d+seg_e+seg_f+seg_g        // char "b"
#define  Char_C  seg_a+seg_d+seg_e+seg_g              // char "C"
#define  Char_D  seg_b+seg_c+seg_d+seg_f+seg_g        // char "d"
#define  Char_E  seg_a+seg_d+seg_e+seg_f+seg_g        // char "E"
#define  Char_F  seg_a+seg_e+seg_f+seg_g              // char "F"
#define	Char_G   seg_f                                // char "G"
#define  Char_H  seg_b+seg_c+seg_e+seg_f+seg_g        // char "H"
#define  Char_i  seg_g                               // char "i"
#define  Char_I  seg_e+seg_g                                // char "I"
#define  Char_J  seg_b+seg_c+seg_d+seg_g             // char "J"
//Char_K                                              // char "K"
#define  Char_L  seg_d+seg_g+seg_e                    // char "L"
//Char_M                                              // char "M"
#define  Char_N  seg_c+seg_f+seg_g                    // char "n"
#define  Char_O  seg_c+seg_d+seg_f+seg_g              // char "o"
#define  Char_P  seg_a+seg_b+seg_e+seg_f+seg_g        // char "P"
#define  Char_Q  seg_a+seg_b+seg_c+seg_f+seg_g        // char "q"
#define  Char_R  seg_f+seg_g                          // char "r"
#define  Char_S  seg_a+seg_c+seg_d+seg_f+seg_g        // char "S"
#define  Char_T  seg_d+seg_e+seg_f+seg_g              // char "t"
#define  Char_U  seg_c+seg_d+seg_g + seg_b+seg_e                   // char "u"
#define  Char_V  seg_b+seg_c+seg_d+seg_e+seg_f        // char "V"
//Char_W                                              // char "W"
//Char_X                                              // char "X"
#define  Char_Y  seg_b+seg_c+seg_d+seg_f+seg_g        // char "y"
#define  Char_Z  seg_a+seg_b+seg_d+seg_e+seg_g        // char "Z"
#define  Char_NULL 0

//===================================================================
//13~16
#define Yseg_a	(1<<4)
#define Yseg_b	(1<<5)
#define Yseg_c	(1<<6)
#define Yseg_d	(1<<7)
#define Yseg_e	(1<<0)
#define Yseg_f	(1<<1)
#define Yseg_g	(1<<2)

#define  YChar_0  Yseg_a+Yseg_b+Yseg_c+Yseg_d+Yseg_e+Yseg_g        // char "0"  0x00
#define  YChar_1  Yseg_b+Yseg_c                                // char "1"  0x01
#define  YChar_2  Yseg_a+Yseg_b+Yseg_d+Yseg_f+Yseg_g              // char "2"  0x02
#define  YChar_3  Yseg_a+Yseg_b+Yseg_c+Yseg_d+Yseg_f              // char "3"  0x03
#define  YChar_4  Yseg_b+Yseg_c+Yseg_f+Yseg_e                    // char "4"  0x04
#define  YChar_5  Yseg_a+Yseg_c+Yseg_d+Yseg_f+Yseg_e              // char "5"  0x05
#define  YChar_6  Yseg_a+Yseg_c+Yseg_d+Yseg_e+Yseg_f+Yseg_g        // char "6"  0x06
#define  YChar_7  Yseg_a+Yseg_b+Yseg_c                   // char "7"  0x07
#define  YChar_8  Yseg_a+Yseg_b+Yseg_c+Yseg_d+Yseg_e+Yseg_f+Yseg_g  // char "8"  0x08
#define  YChar_9  Yseg_a+Yseg_b+Yseg_c+Yseg_d+Yseg_f+Yseg_e        // char "9"  0x09
#define  YChar_A  Yseg_a+Yseg_b+Yseg_c+Yseg_e+Yseg_f+Yseg_g  // char "A"
#define  YChar_B  Yseg_c+Yseg_d+Yseg_e+Yseg_f+Yseg_g        // char "b"
#define  YChar_C  Yseg_a+Yseg_d+Yseg_e+Yseg_g              // char "C"
#define  YChar_D  Yseg_b+Yseg_c+Yseg_d+Yseg_f+Yseg_g        // char "d"
#define  YChar_E  Yseg_a+Yseg_d+Yseg_e+Yseg_f+Yseg_g        // char "E"
#define  YChar_F  Yseg_a+Yseg_e+Yseg_f+Yseg_g              // char "F"
#define	 YChar_G   Yseg_f                                // char "G"
#define  YChar_H  Yseg_b+Yseg_c+Yseg_e+Yseg_f+Yseg_g        // char "H"
#define  YChar_i  Yseg_g                               // char "i"
#define  YChar_I  Yseg_e+Yseg_g                                // char "I"
#define  YChar_J  Yseg_b+Yseg_c+Yseg_d+Yseg_g             // char "J"
//Char_K                                              // char "K"
#define  YChar_L  Yseg_d+Yseg_g+Yseg_e                    // char "L"
//Char_M                                              // char "M"
#define  YChar_N  Yseg_c+Yseg_f+Yseg_g                    // char "n"
#define  YChar_O  Yseg_c+Yseg_d+Yseg_f+Yseg_g              // char "o"
#define  YChar_P  Yseg_a+Yseg_b+Yseg_e+Yseg_f+Yseg_g        // char "P"
#define  YChar_Q  Yseg_a+Yseg_b+Yseg_c+Yseg_f+Yseg_g        // char "q"
#define  YChar_R  Yseg_f+Yseg_g                          // char "r"
#define  YChar_S  Yseg_a+Yseg_c+Yseg_d+Yseg_f+Yseg_g        // char "S"
#define  YChar_T  Yseg_d+Yseg_e+Yseg_f+Yseg_g              // char "t"
#define  YChar_U  Yseg_c+Yseg_d+Yseg_g +Yseg_b+Yseg_e                   // char "u"
#define  YChar_V  Yseg_b+Yseg_c+Yseg_d+Yseg_e+Yseg_f        // char "V"
//Char_W                                              // char "W"
//Char_X                                              // char "X"
#define  YChar_Y  Yseg_b+Yseg_c+Yseg_d+Yseg_f+Yseg_g        // char "y"
#define  YChar_Z  Yseg_a+Yseg_b+Yseg_d+Yseg_e+Yseg_g        // char "Z"
#define  YChar_NULL 0

//=================================================================================================

#define MemorySetHundred		1  //待调试

#define PulseSingle					16
#define PulseTen						15
#define MemorySetSingle			14
#define MemorySetTen				13
#define DIASingle						12
#define DIATen							11
#define DIAHundred					10
#define SYSSingle						9
#define SYSTen							8
#define SYSHundred					7
#define MINSingle						6
#define MINTen							5
#define HourSingle					4
#define DaySingle						3
#define DayTen							2
#define MonthSingle					1

//==================================================================================================

#define UserAIconOn 		(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<10)))
#define UserAIconOff 		(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]&(~(1<<10))))
#define UserBIconOn 		(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<11)))
#define UserBIconOff 		(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]&(~(1<<11))))
#define MonthTenIconOn 		(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<16)))
#define MonthTenIconOff 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]&(~(1<<16))))
#define MonthIconOn 		(LCD->DR1 = LcdBuf[1] = (LcdBuf[1]|(1<<0)))
#define MonthIconOff 		(LCD->DR1 = LcdBuf[1] = (LcdBuf[1]&(~(1<<0))))
#define DayIconOn 			(LCD->DR1 = LcdBuf[1] = (LcdBuf[1]|(1<<16)))
#define DayIconOff 			(LCD->DR1 = LcdBuf[1] = (LcdBuf[1]&(~(1<<16))))
#define AMIconOn 			(LCD->DR2 = LcdBuf[2] = (LcdBuf[2]|(1<<3)))
#define AMIconOff 			(LCD->DR2 = LcdBuf[2] = (LcdBuf[2]&(~(1<<3))))
#define PMIconOn 			(LCD->DR2 = LcdBuf[2] = (LcdBuf[2]|(1<<2)))
#define PMIconOff 			(LCD->DR2 = LcdBuf[2] = (LcdBuf[2]&(~(1<<2))))
#define Time1IconOn1 		(LCD->DR2 = LcdBuf[2] = (LcdBuf[2]|(1<<0)))
#define Time1IconOn2 		(LCD->DR2 = LcdBuf[2] = (LcdBuf[2]|(1<<8)))
#define Time2IconOn 		(LCD->DR2 = LcdBuf[2] = (LcdBuf[2]|(1<<1)))
#define TimeTenIconOff1 	{LCD->DR2 = LcdBuf[2] = (LcdBuf[2]&(~(1<<0)));LCD->DR2 = LcdBuf[2] = (LcdBuf[2]&(~(1<<8)));}
#define TimeTenIconOff2 	(LCD->DR2 = LcdBuf[2] = (LcdBuf[2]&(~(1<<1))))
#define TimePointIconOn 	(LCD->DR2 = LcdBuf[2] = (LcdBuf[2]|(1<<24)))
#define TimePointIconOff 	(LCD->DR2 = LcdBuf[2] = (LcdBuf[2]&(~(1<<24))))
#define BTIconOn
#define BTIconOff
#define VoiceOffIconOn
#define VoiceOffIconOff
#define kPaPointSYSIconOn 		(LCD->DR4 = LcdBuf[4] = (LcdBuf[4]|(1<<24)))
#define kPaPointSYSIconOff 		(LCD->DR4 = LcdBuf[4] = (LcdBuf[4]&(~(1<<24))))
#define kPaPointDIAIconOn 		(LCD->DR6 = LcdBuf[6] = (LcdBuf[6]|(1<<8)))
#define kPaPointDIAIconOff 		(LCD->DR6 = LcdBuf[6] = (LcdBuf[6]&(~(1<<8))))
#define MemoryIconOn 			(LCD->DR5 = LcdBuf[5] = (LcdBuf[5]|(1<<8)))
#define MemoryIconOff 			(LCD->DR5 = LcdBuf[5] = (LcdBuf[5]&(~(1<<8))))


//#define mmHgIconOn 			(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]|(1<<3)))
//#define mmHgIconOff 			(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]&(~(1<<3))))
//#define kPaIconOn 			(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]|(1<<19)))
//#define kPaIconOff 			(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]&(~(1<<19))))

//20210601
#define WHOLevel6Icon	 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<9)))
#define WHOLevel5Icon	 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<8)))
#define WHOLevel4Icon	 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<0)))
#define WHOLevel3Icon	 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<1)))
#define WHOLevel2Icon	 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<2)))
#define WHOLevel1Icon	  	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<3)))

/*
#define WHOLevel1Icon	 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<9)))
#define WHOLevel2Icon	 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<8)))
#define WHOLevel3Icon	 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<0)))
#define WHOLevel4Icon	 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<1)))
#define WHOLevel5Icon	 	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<2)))
#define WHOLevel6Icon	  	(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]|(1<<3)))
*/

#define	WHOLevelIconOff		(LCD->DR0 = LcdBuf[0] = (LcdBuf[0]&(0xFFFFFCF0)))
//------------------------------------------------
#define YIconOff 			(LCD->DR5 = LcdBuf[5] = (LcdBuf[5]&(~(1<<10))))		//clear Y
#define XIconOff 			(LCD->DR3 = LcdBuf[3] = (LcdBuf[3]&(~(1<<26))))		//clear X

#define A17IconOn 			(LCD->DR4 = LcdBuf[4] = (LcdBuf[4]|(1<<8)))
#define A17IconOff 			(LCD->DR4 = LcdBuf[4] = (LcdBuf[4]&(~(1<<8))))
#define C17IconOn 			(LCD->DR5 = LcdBuf[5] = (LcdBuf[5]|(1<<11)))
#define C17IconOff 			(LCD->DR5 = LcdBuf[5] = (LcdBuf[5]&(~(1<<11))))
#define E17IconOn 			(LCD->DR3 = LcdBuf[3] = (LcdBuf[3]|(1<<24)))
#define E17IconOff 			(LCD->DR3 = LcdBuf[3] = (LcdBuf[3]&(~(1<<24))))
#define F17IconOn 			(LCD->DR3 = LcdBuf[3] = (LcdBuf[3]|(1<<27)))
#define F17IconOff 			(LCD->DR3 = LcdBuf[3] = (LcdBuf[3]&(~(1<<27))))
#define G17IconOn 			(LCD->DR5 = LcdBuf[5] = (LcdBuf[5]|(1<<24)))
#define G17IconOff 			(LCD->DR5 = LcdBuf[5] = (LcdBuf[5]&(~(1<<24))))

#define A17_show1			{A17IconOff;B17IconOn;C17IconOn;D17IconOff;E17IconOff;F17IconOff;G17IconOff;}
#define A17_show2			{A17IconOn;B17IconOn;C17IconOff;D17IconOn;E17IconOff;F17IconOn;G17IconOn;}
#define A17_show3			{A17IconOn;B17IconOn;C17IconOn;D17IconOn;E17IconOff;F17IconOn;G17IconOff;}
#define A17_show4			{A17IconOff;B17IconOn;C17IconOn;D17IconOff;E17IconOn;F17IconOn;G17IconOff;}
#define A17_show5			{A17IconOn;B17IconOff;C17IconOn;D17IconOn;E17IconOn;F17IconOn;G17IconOff;}

#define A17_showoff			{A17IconOff;B17IconOff;C17IconOff;D17IconOff;E17IconOff;F17IconOff;G17IconOff;}
//----------------------------------------------------------------
//--------------------- SEG2627 ENABLE/DISABLE    ------------------
	#define EXCLUDE_SEG2627
//----------------------------------------------------------------
//---------------------- SEG2627 Influence    -------------------
#ifdef EXCLUDE_SEG2627
    #define D17IconOn 			(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]|(1<<11)))			//S29_C[3]
    #define D17IconOff 			(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]&(~(1<<11))))

    #define B17IconOn 			(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]|(1<<27)))			//S31_C[3]
    #define B17IconOff 			(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]&(~(1<<27))))

    #define HeartIconOn  			(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]|(1<<10)))			//S33_C[2]
    #define HeartIconOff 			(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]&(~(1<<10))))
    #define LBTIconOn 				(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]|(1<<9)))			//S33_C[1]
    #define LBTIconOff 				(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]&(~(1<<9))))
    #define PADIconOn				  (LCD->DR8 = LcdBuf[8] = (LcdBuf[8]|(1<<8)))			//S33_C[0]
    #define PADIconOff 				(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]&(~(1<<8))))
    #define PULBAIIconOn 			(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]|(1<<11)))			//S33_C[3]
    #define PULBAIIconOff 		(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]&(~(1<<11))))

    #define kPaIconOn 			(LCD->DR9 = LcdBuf[9] = (LcdBuf[9]|(1<<3)))			//S36_C[3]
    #define kPaIconOff 			(LCD->DR9 = LcdBuf[9] = (LcdBuf[9]&(~(1<<3))))
    #define mmHgIconOn 			(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]|(1<<19)))			//S34_C[3]
    #define mmHgIconOff 		(LCD->DR8 = LcdBuf[8] = (LcdBuf[8]&(~(1<<19))))
#else
    #define D17IconOn 			(LCD->DR6 = LcdBuf[6] = (LcdBuf[6]|(1<<27)))		//S27_C[3]
    #define D17IconOff 			(LCD->DR6 = LcdBuf[6] = (LcdBuf[6]&(~(1<<27))))

    #define B17IconOn 			(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]|(1<<11)))		//S29_C[3]
    #define B17IconOff 			(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]&(~(1<<11))))

    #define HeartIconOn  			(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]|(1<<26)))		//S31_C[2]
    #define HeartIconOff 			(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]&(~(1<<26))))
    #define LBTIconOn 				(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]|(1<<25)))		//S31_C[1]
    #define LBTIconOff 				(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]&(~(1<<25))))
    #define PADIconOn				(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]|(1<<24)))		//S31_C[0]
    #define PADIconOff 				(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]&(~(1<<24))))
    #define PULBAIIconOn 			(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]|(1<<27)))		//S31_C[3]
    #define PULBAIIconOff 		(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]&(~(1<<27))))

    #define kPaIconOn    (LCD->DR8=(LcdBuf[8] |=0X00080000))  //S34_C[3]
    #define kPaIconOff 	 (LCD->DR8=(LcdBuf[8]&=~0x00080000))
    #define mmHgIconOn   (LCD->DR8=(LcdBuf[8] |=0x00000008))  //S32_C[3]
    #define mmHgIconOff  (LCD->DR8=(LcdBuf[8]&=~0x00000008))
#endif
//------------------------------------------------
//------------------------------------------------
#define DisplayYear20 		{Time1IconOn1;Time2IconOn;LCD->DR2 = LcdBuf[2] = (LcdBuf[2]&(~(1<<8)));}
#define DisplayHour20 		DisplayYear20
#define DisplayHourTen1 	Time1IconOn1
#define DisplayHourTen2 	Time1IconOn2
#define DarkHourTen1	 	TimeTenIconOff1
#define DarkHourTen2	 	TimeTenIconOff2

#define BAR1IconOn
#define BAR1IconOff
#define BAR2IconOn
#define BAR2IconOff
#define BAR3IconOn
#define BAR3IconOff
#define BAR4IconOn
#define BAR4IconOff
#define BAR5IconOn
#define BAR5IconOff
#define BAR6IconOn
#define BAR6IconOff
#define BAR7IconOn
#define BAR7IconOff
#define BAR8IconOn
#define BAR8IconOff

#define MoveIconOn		(LCD->DR3 = LcdBuf[3] = (LcdBuf[3]|(1<<27)))
#define MoveIconOff 	(LCD->DR3 = LcdBuf[3] = (LcdBuf[3]&(~(1<<27))))
#define CuffIconOn 		 (LCD->DR3 = LcdBuf[3] = (LcdBuf[3]|(1<<24)))
#define CuffIconOff 	 (LCD->DR3 = LcdBuf[3] = (LcdBuf[3]&(~(1<<24))))
#define OKIconOn 		(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]|(1<<11)))
#define OKIconOff 		(LCD->DR7 = LcdBuf[7] = (LcdBuf[7]&(~(1<<11))))

#define DPIconOn
#define DPIconOff


#define ResultIcon2On 	 (LCD->DR3 = LcdBuf[3] = (LcdBuf[3]|(1<<8)))
#define ResultIcon2Off   (LCD->DR3 = LcdBuf[3] = (LcdBuf[3]&(~(1<<8))))

#define ResultIcon3On 	 (LCD->DR3 = LcdBuf[3] = (LcdBuf[3]|(1<<8)))
#define ResultIcon3Off   (LCD->DR3 = LcdBuf[3] = (LcdBuf[3]&(~(1<<8))))

#define W1IconOn
#define W1IconOff
#define W2IconOn
#define W2IconOff
#define W3IconOn
#define W3IconOff
#define W4IconOn
#define W4IconOff







void UserLCD_Init(void);
void ShowAllIcon(void);
void DarkAllIcon(void);


void DisplayHalfByte(uint8 LCDData,uint8 position);
void ShowAllIcon(void);
void DarkAllIcon(void);
void LCD5bitDisplay(uint16 TwoByte);
void LCD5bitDisplayT(uint16 TwoByte);
void LCD8bitDisplay(uint8 DDataH,uint8 DDataM,uint8 DDataL);

void DisplayToPUL(unsigned char i);
void DisplayToSYSDIA(unsigned int SYS,unsigned char position);
void DisplayToMemorySet(unsigned int i);
void DisplayLongData1(unsigned int i);
void DisplayLongData(unsigned int i);
void darkwordtolcdmin(void);
void darkwordtolcdhour(void);
void darkwordtolcdday(void);
void darkwordtolcdmonth(void);
void showminute(void);
void showhour(void);
void showday(void);
void showmonth(void);
void showtime(void);
void showdate(void);
void showyear(void);
void flashminute(void);
void flashtimepoint(void);
void flashhour(void);
void flashday(void);
void flashmonth(void);
void flashyear(void);
void UserABDisplay(void);
void showpressure(void);
void mmHgKpaDisplay(unsigned char SysDisplay,unsigned char DiaDisplay);

void	showpres(void) ;

void ShowPumpWHO(void);
void heartsignon(void);
void heartsignoff(void);

void	Calshowpres(void) ;
void ShowBTBar(void);
void mmHgKpaSetDisplay(void);
void	showerror(void);
void   ShowWHO(unsigned char WHOSYS,unsigned char WHODIA);
void DisplayToSYSDIA(unsigned int SYS,unsigned char position);
void	flashuser(void);
void	flashmemoryset(unsigned char i);
void SPDisplay(void);
void EngTurDisplay(void);
void ShowVoiceCET(void);
void ShowVoiceLevel(void);
void showalarm(void);
void flashalarm(unsigned char i);
void SpeakDisplay(void);
void flashCL(void);
void ShowRestTime(uint32 TimeCount);
void ShowMemoryDate(unsigned char MM,unsigned char DD);
void ShowMemoryTime(unsigned char HH,unsigned char MM);
void lowbsignon(void);
void	flashParameter(void);
void user_lcd_stru_init(void);
void LCDTEST(void);
#endif



/************************ (C) COPYRIGHT Hangzhou SDIC Microelectronics *****END OF FILE****/
